<div style="width: 100%;height: 1200px;background-color: white;padding: 10px;">
    <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
        <div style="height: 40px;font-size: 16px;width: 100%">进货单</div>
        <div class="form-group col-xs-5">
            <label class="control-label col-xs-6 col-sm-4"><span class="cy-span-red">*</span>{:__('单据编号')}:</label>
            <div class="col-xs-6 col-sm-8">
                <input id="c-order_no" data-rule="required" data-source="basic/stash/index"
                       class="form-control" name="order_no" type="text" value="{$order_no}">
            </div>
        </div>
        <div class="form-group col-xs-5">
            <label class="control-label col-xs-6 col-sm-4"><span class="cy-span-red">*</span>{:__('单据日期')}:</label>
            <div class="col-xs-6 col-sm-8">
                <input id="c-date" data-rule="required"
                       class="form-control" name="date" type="date" value="{:date('Y-m-d')}">
            </div>
        </div>
        <div class="form-group col-xs-5">
            <label class="control-label col-xs-6 col-sm-4"><span class="cy-span-red">*</span>{:__('供货单位')}:</label>
            <div class="col-xs-6 col-sm-8">
                <input id="c-unit_id" data-rule="required" data-source="basic/unit/index"
                       class="form-control selectpage" name="unit_id" type="text" value="">
            </div>
        </div>
        <div class="form-group col-xs-5">
            <label class="control-label col-xs-6 col-sm-4"><span class="cy-span-red">*</span>{:__('经手人')}:</label>
            <div class="col-xs-6 col-sm-8">
                <input id="c-staff_id" data-rule="required" data-source="basic/staff/index"
                       class="form-control selectpage" name="staff_id" type="text" value="">
            </div>
        </div>
        <div class="form-group col-xs-5">
            <label class="control-label col-xs-6 col-sm-4"><span class="cy-span-red">*</span>{:__('收货仓库')}:</label>
            <div class="col-xs-6 col-sm-8">
                <input id="c-stash_id" data-rule="required" data-source="basic/stash/index"
                       class="form-control selectpage" name="stash_id" type="text" value="">
            </div>
        </div>
        <div class="form-group col-xs-5">
            <label class="control-label col-xs-6 col-sm-4">{:__('备注')}:</label>
            <div class="col-xs-6 col-sm-8">
                <input id="c-remarks" data-rule=""
                       class="form-control " name="remarks" type="text" value="">
            </div>
        </div>

        <style>
            .cy-div {
                padding: 0;
            }

            .goods_name, .goods_number {
                cursor: pointer;
            }
            .del-span{
                position: absolute;
                display: inline-block;
                width: 50px;
                height: 40px;
                line-height: 33px;
                text-align: center;
            }
        </style>
        <div id="goods">
            <div class="form-group col-xs-12 goods1" style="margin-left: 5%">
                <label class="control-label col-xs-1 col-sm-1">1</label>
                <div class="col-xs-1 col-sm-1 cy-div">
                    <input data-rule=""
                           class="form-control goods_number goods_number1" readonly data-xh="1"
                           name="goods_number[]" type="text" value="" data-field="number" placeholder="商品编号">
                    <input data-rule=""
                           class="form-control goods_id goods_id1" readonly data-xh="1"
                           name="goods_id[]" type="hidden" value="" data-field="number" placeholder="商品id">
                </div>
                <div class="col-xs-3 col-sm-3 cy-div">
                    <input data-rule=""
                           class="form-control goods_name goods_name1" readonly name="goods_name[]" data-xh="1"
                           type="text"
                           value="" placeholder="点击选择商品">
                </div>
                <div class="col-xs-1 col-sm-1 cy-div">
                    <input data-rule=""
                           class="form-control goods_qty goods_qty1" name="goods_qty[]" type="text" value="" data-xh="1"
                           placeholder="数量">
                </div>
                <div class="col-xs-1 col-sm-1 cy-div">
                    <input data-rule=""
                           class="form-control goods_price goods_price1" name="goods_price[]" type="text" value=""
                           data-xh="1"
                           placeholder="单价">
                </div>
                <div class="col-xs-1 col-sm-1 cy-div">
                    <input data-rule=""
                           class="form-control goods_amount goods_amount1" name="goods_amount[]" type="text" value=""
                           data-xh="1"
                           placeholder="金额">
                </div>
                <div class="col-xs-2 col-sm-2 cy-div">
                    <input data-rule=""
                           class="form-control goods_remarks goods_remarks1" name="goods_remarks[]" type="text"
                           value="" data-xh="1"
                           placeholder="备注" >
<!--                    <span class="del-span">删除</span>-->
                </div>
                <div data-xh="1" class="col-xs-1 col-sm-1 cy-div goods_del" style="line-height: 35px;padding-left: 10px; cursor: pointer;">
                    删除
                </div>
            </div>

        </div>
        <div class="col-xs-12 col-sm-12 cy-div" style="text-align: right;padding-right: 20%;margin-bottom: 20px;">
            数量总计 &nbsp;&nbsp;<span id="sum_qty">0</span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            价格总计  &nbsp;&nbsp;<span id="sum_amount">0</span>
        </div>
        <div class="form-group col-xs-5">
            <label class="control-label col-xs-6 col-sm-4">{:__('付款金额')}:</label>
            <div class="col-xs-6 col-sm-8">
                <input id="c-amount" data-rule="" placeholder="不填写的话默认商品总计算金额"
                       class="form-control" name="amount" type="text" value="">
            </div>
        </div>
        <div class="form-group col-xs-5">
            <label class="control-label col-xs-6 col-sm-4"><span class="cy-span-red">*</span>{:__('付款账户')}:</label>
            <div class="col-xs-6 col-sm-8">
                <input id="c-assets_id" data-rule="required" data-source="basic/assets/index"
                       class="form-control selectpage" name="assets_id" type="text" value="">
            </div>
        </div>

        <div class="form-group layer-footer col-xs-8" style="margin-top: 100px;">
            <label class="control-label col-xs-12 col-sm-2"></label>
            <div class="col-xs-12 col-sm-8">
                <button type="submit" class="btn btn-primary btn-embossed  disabled">{:__('OK')}</button>

            </div>
        </div>
    </form>
</div>